<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>后台管理</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport" />
    <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" />
    <link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" />
    <link rel="stylesheet" href="//cdn.bootcss.com/ionicons/2.0.1/css/ionicons.min.css" />
    <link rel="stylesheet" href="/website/static/assets/adminlte-2.3.7/css/AdminLTE.min.css"  />
    <link rel="stylesheet" href="/website/static/assets/adminlte-2.3.7/css/skins/_all-skins.min.css" />
    <link rel="stylesheet" href="/website/static/css/app.css" />
    <style type="text/css">
    	.user-header{
    		    background-color: #f9f7f7;
    	}
    </style>
</head>
<body class="hold-transition skin-blue fixed sidebar-mini">
<div class="wapper">
    <header class="main-header">
        <a href="/website/menu/index" class="logo">
            <span class="logo-lg"><b>Damionew</b>SpringBoot</span>
        </a>
        <nav class="navbar navbar-static-top">
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="/website/static/img/goddess.jpg" class="user-image"
                                 alt="User Image"/>
                            <span class="hidden-xs" ></span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="user-header" style="background-color:#f9f7f7">
                                <img src="/website/static/img/goddess.jpg" class="img-circle"
                                     alt="User Image"/>
                                <h4>登录用户:<small th:text="${name}"></small></h4>
                                <h4>创建时间:<small th:text="${created_time}"></small></h4>
                            </li>
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="/user" class="btn btn-default btn-flat">修改</a>
                                </div>
                                <div class="pull-right">
                                    <a href="/website/logout" class="btn btn-default btn-flat">退出</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <aside class="main-sidebar">
        <section class="sidebar">
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="/website/static/img/goddess.jpg" class="img-circle" alt="User Image"/>
                </div>
                <div class="pull-left info">
                    <h4>Damionew<small>&nbsp;&nbsp;&nbsp;<b><i>yongqi</i></b></small></h4>
                </div>
            </div>
            <ul class="sidebar-menu">
                <li class="header">控制面板</li>
                <li class="treeview" >
                    <a href="#">
                        <i class="fa fa-dashboard"></i>
                        <span th:text="系统管理"></span>
                        <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <ul class="treeview-menu">
                        <li th:each="sys:${systemList}">
                            <a th:href="${sys.url}"  target="mainFrame"><i class="fa fa-dashboard"></i><b th:text="${sys.title}"></b></a>
                        </li>
                    </ul>
                </li>
                <li class="treeview" >
                    <a href="#">
                        <i class="fa fa-table"></i>
                        <span th:text="前台管理"></span>
                        <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <ul class="treeview-menu">
                        <li th:each="fro:${frontList}">
                            <a th:href="${fro.url}"  target="mainFrame"><i class="fa fa-table"></i><b th:text="${fro.title}"></b></a>
                        </li>
                    </ul>
                </li>
            </ul>
        </section>
    </aside>
    <div class="content-wrapper">
    <!-- 在SpringBoot中使用src会自动交给MVC的dispatcher来识别映射 -->
        <iframe name="mainFrame" id="mainFrame" src="/website/menu/main" frameborder="false" scrolling="auto" style="border:none;" width="100%" height="auto" allowtransparency="true"></iframe>
    </div>
</div>
<script type="text/javascript" src="//cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script type="text/javascript" src="//cdn.bootcss.com/jquery-migrate/1.4.1/jquery-migrate.min.js"></script>
<script type="text/javascript" src="//cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/website/static/assets/adminlte-2.3.7/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src="/website/static/assets/adminlte-2.3.7/js/app.min.js"></script>
<script type="text/javascript" src="/website/static/js/index.js"></script>
<script type="text/javascript" src="/website/static/js/login.js"></script>
</body>
</html>